<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition>
	<h:form id="itemTmp">
		<p:dataTable id="tabelaItemTmp" var="beanItemTmp"
			value="#{pedidoControle.listaInfosItemTmp}" paginator="true" rows="5">

			<f:facet name="header">
				<h:outputLabel value="#{pedidoControle.tituloPagina}" />
			</f:facet>

			<f:facet name="footer">
			</f:facet>

			<p:column filterBy="#{beanItemTmp.produto.produto}">
				<f:facet name="header">
					<h:outputText value="#{msg.produto}" />
				</f:facet>
				<h:outputText value="#{beanItemTmp.produto.produto}" />
			</p:column>

			<p:column>
				<f:facet name="header">
					<h:outputText value="#{msg.itemPedidoQuantidade}" />
				</f:facet>
				<h:outputText value="#{beanItemTmp.quantidade}" />
			</p:column>

			<p:column>
				<h:panelGroup>
					<h:commandLink action="#{pedidoControle.preparaEditar}">
						<h:graphicImage library="imagens" name="editar16a.png"
							style="border:0" />
						<h:outputText value="#{msg.geralLinkAlterar}" />
						<f:setPropertyActionListener
							target="#{pedidoControle.infoBeanItemTmp}" value="#{beanItemTmp}" />
					</h:commandLink>
					<h:outputText value="  " />
					<h:commandLink action="#{pedidoControle.preparaEliminar}">
						<h:graphicImage library="imagens" name="deletar16a.png"
							style="border:0" />
						<h:outputText value="#{msg.geralLinkEliminar}" />
						<f:setPropertyActionListener
							target="#{pedidoControle.infoBeanItemTmp}" value="#{beanItemTmp}" />
					</h:commandLink>
				</h:panelGroup>
			</p:column>
		</p:dataTable>
	</h:form>
</ui:composition>
</html>